package com.example.demo.Exception;

import com.example.demo.enums.ExceptionEnum;

public class DeviceException extends RuntimeException {
    private Integer code;
    public DeviceException(ExceptionEnum en){
        super(en.getMsg());

        this.code = en.getCode();
    }
}
